import React, { Component } from 'react';
import { Text, View,StyleSheet,Dimensions } from 'react-native';

import Board from './Board'
export default class Game extends Component {

	constructor(props) {
		super(props);
		this.state = { 
		
		};
	}

	render() {
		const board = this.props.active?<Board/>:null;
		return(
			<View style={styles.container}>
				{board}		        
	        </View>
		);
	}
}
const styles = StyleSheet.create({
	container: {
		marginTop:50,
		marginLeft:30,
		marginRight:30,
		borderWidth:5,
		borderStyle:'solid',
		borderColor:"white",
		height:Dimensions.get('window').width-60,
		width:Dimensions.get('window').width-60,
	},	
});